import { Pressable, ScrollView, Text } from "react-native";
import { WORKER } from "../../../src/store/reducers/UserRole.ts";
import { RoleRep } from "../../../src/Account/Data/role_data.ts";


const Recruit = () => {

  const roleRep: RoleRep = new RoleRep();

  const handleToWorker = () => {
    console.log("切换角色-工人");
    roleRep.selectRole(WORKER);
  };

  return (
    <ScrollView>
      <Pressable onPress={handleToWorker}>
        <Text style={{ textAlign: "center", padding: 16, backgroundColor: "blue", color: "white" }}>
          切换到工人
        </Text>
      </Pressable>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
      <Text>找活干</Text>
    </ScrollView>
  );
};

export default Recruit;
